<?php
/*
Template Name: Full-Page-With-No-Sidebars
*/
?>
<?php get_header(); ?>
	<div id="fullpage">
	<?php if (have_posts()) : ?>
   <?php while (have_posts()) : the_post(); ?>
    <div id="post-<?php the_ID(); ?>" class="post">
      <h2 class="pagetitle"><?php the_title(); ?></h2>
			<div class="entry">
				<?php the_content('Read the rest of this entry &raquo;'); ?>
        <?php $sub_pages = wp_list_pages( 'sort_column=menu_order&depth=1&title_li=&echo=0&child_of=' . $id );?>
        <?php if ($sub_pages <> "" ){?>
        <p class="meta">This page has the following sub pages.</p>
        <ul>
          <?php echo $sub_pages; ?>
        </ul>
        <?php }?>
        <?php edit_post_link();?>
      </div>
    <?php comments_template(); //get comments template?>
		</div>
		<?php endwhile; ?>
    </div>
    <?php else : ?>
		<h2 class="center">Not Found</h2>
		<p class="center">Sorry, but you are looking for something that isn't here.</p>

	<?php endif; ?>  
<?php get_footer(); ?>
